<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            height: 100px;
            width: 100px;
            border: 1px solid rebeccapurple;
        }

        p {
            height: 30px;
            width: 30px;
            background-color: red;
            border-radius: 50%;
        }
    </style>
</head>

<body>
    <div onclick="box()">
        <p onclick="pbox()"></p>
    </div>
    <img src="https://www.w3school.com.cn/i/eg_planets.jpg" border="0" usemap="#planetmap" alt="Planets" />

    <map name="planetmap" id="planetmap">

        <area shape="circle" coords="180,139,14" href="/example/html/venus.html" target="_blank" alt="Venus" />
        <area shape="circle" coords="129,161,10" href="/example/html/mercur.html" target="_blank" alt="Mercury" />
        <area shape="rect" coords="0,0,110,260" href="/example/html/sun.html" target="_blank" alt="Sun" />

    </map>
    <script>
        function box() {
            alert(1)
        }
        function pbox() {
            event.stopPropagation();
            alert(2)
        }
    </script>
</body>

</html>